/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package darknet.core.impl.net;

import darknet.core.spec.net.MessageHeader;
import darknet.core.spec.net.Node;

/**
 *
 * @author Yoyo
 */
public class PingMessage extends AbstractMessage {

    /** Message's header */
    private MessageHeader header;

    /** The text message */
    private String text;

    /** The channel name */
    private String channelName;

    /**
     * Initialise a new PingMessage.
     *
     * @param from The writer
     * @param to   The receiver
     */
    PingMessage(MessageHeader header, Node from, Node to) {
	super(header, from, to);
	this.header = BaseMessageFactory.header;
    }

    /**
     * Get the text message.
     * @return
     */
    public String getText() {
	return text;
    }

    public String getChannelName() {
	return channelName;
    }

    @Override
    public MessageHeader getHeader() {
	return header;
    }
}
